﻿//
// XN4SL - Xna Framework for Silverlight.
//
using System;

namespace Xn4Sl.Framework
{
    /// <summary>
    /// Arguments used with events from the GameComponentCollection.
    /// </summary>
    public class GameComponentCollectionEventArgs : EventArgs
    {
        /// <summary>
        /// Creates a new instance of Xn4Sl.Framework.GameComponentCollectionEventArgs(Xn4Sl.Framework.IGameComponent)
        /// </summary>
        /// <param name="gameComponent">The game component affected by the event.</param>
        public GameComponentCollectionEventArgs(IGameComponent gameComponent) 
        {
            this.gameComponent = gameComponent;
        }
        /// <summary>
        /// The game component affected by the event.
        /// </summary>
        private IGameComponent gameComponent;
        public IGameComponent GameComponent 
        { 
            get 
            {
                return this.gameComponent;
            } 
        }
    }
}
